package cn.xxm.strategy.pay.dto;

import cn.xxm.strategy.pay.i18n.response.CommonResponseInfo;
import cn.xxm.strategy.pay.i18n.response.UserResponseInfo;
import cn.xxm.strategy.pay.validate.annotation.VNotEmpty;
import cn.xxm.strategy.pay.validate.annotation.VRegex;
import lombok.Data;

import java.io.Serializable;

/**
 * @program: activiti7_workflow
 * @link: 55864455@qq.com
 * @author: Mr.Xxm
 * @create: 2020-09-24 22:48
 **/

@Data
public class SourceIntergateInfoDTO implements Serializable {
    private static final long serialVersionUID = 3701798995275005526L;

    private String source;

    private String international;

    @VNotEmpty(enumClass = UserResponseInfo.class,enumName = "USER_IS_NOTEXIST")
    @VRegex(regex = "^[0-1]$",enumClass=UserResponseInfo.class,enumName="ERROR_ACCOUNT_OR_PWD")
    private String name;
}
